//
//  UILabel+Extension.swift
//  KKWeiBo
//
//  Created by 柯平常 on 16/5/24.
//  Copyright © 2016年 柯平常. All rights reserved.
//

import UIKit

extension UILabel {

/*
     lbl.text = KKUserAccountViewModel.sharedAccountViewModel.userAccount?.name
     lbl.font = UIFont.systemFontOfSize(18)
     lbl.textColor = UIColor.darkGrayColor()
     */
    
    
    /*
     
     let lbl = UILabel()
     lbl.text = "关注一些人,回到这里看看有什么惊喜"
     lbl.textAlignment = .Center
     
     lbl.textColor = UIColor.grayColor()
     lbl.font = UIFont.systemFontOfSize(14)
     lbl.numberOfLines = 0
     
     
     */
    
    convenience init(text:String? = "",fontSize:CGFloat,txtCol:UIColor,textAlign:NSTextAlignment){
        self.init()
        
        self.text = text
        font = UIFont.systemFont(ofSize: fontSize)
        textAlignment = textAlign
        textColor = txtCol
        numberOfLines = 0
        sizeToFit()
    }
}
